<!DOCTYPE html>
<html xmlns=http://www.w3.org/1999/xhtml xmlns:bd=http://www.baidu.com/2010/xbdml>
<head>

    <title>报警处理</title>
    <meta http-equiv="Content-Type" content="text/html" charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <link rel="stylesheet" href="/pc/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/pc/layout/css/font_eolqem241z66flxr.css" media="all" />
    <link rel="stylesheet" href="/pc/layout/css/news.css" media="all" />
     <style type="text/css">
         .op{
            background-color: red;
         }
     </style>
</head>

<body class="childrenBody">
<blockquote class="layui-elem-quote" style="margin-top:1.2em;">
    <form action="" method="get">
        <div class="layui-inline">
            <div class="layui-input-inline" style="margin-top: 5px;margin-right: 20px; ">
                <label class="layui-form-label" style="padding: 0;width: 66px;margin-top: 1px;height: 36.4px;background: #E5E5E5;text-align: center;line-height: 36.4px;">代理商</label>
                <select name="agent_id" lay-verify="" class="layui-input search_input"  style="width: 12em">
                    @if(!null == $agentInfo)
                        @foreach($agentInfo as $v)
                            <option value="{{$v['id']}}" @if(isset($get['agent_id'])) @if($get['agent_id'] == $v['id']) selected @endif @endif >{{ $v['name'] }}</option>
                        @endforeach
                    @endif
                </select>
            </div>
            <div class="layui-input-inline" style="margin-top: 5px;margin-right: 20px; ">
                <label class="layui-form-label" style="padding: 0;width: 66px;margin-top: 1px;height: 36.4px;background: #E5E5E5;text-align: center;line-height: 36.4px;">时间范围</label>
                <div class="layui-input-inline">
                    <input class="layui-input" value="" name="ftime" placeholder="开始日" id="LAY_demorange_s">
                </div>
                <div class="layui-input-inline">
                    <input class="layui-input" value="" name="ltime" placeholder="截止日" id="LAY_demorange_e">
                </div>
            </div>
           
            <input type="submit" class="layui-btn search_btn" value="查询" style="margin-top: 5px;">           
        </div>
    </form>
    {{ csrf_field() }}
        <div class="layui-input-inline" style="margin-top: 5px;margin-right: 20px; ">
           <label class="layui-form-label" style="padding: 0;width: 66px;margin-top: 1px;height: 36.4px;background: #E5E5E5;text-align: center;line-height: 36.4px;">报警原因</label>
           <select id="action_id" autocomplete="off" lay-verify="operate"  class="layui-input search_input operate "  style="width: 12em">
                     <option value="op1" >请选择</option>
                        @if(!empty($action))
                            @foreach($action as $v)
                                <option value="{{$v['id']}}">{{$v['name']}}</option>
                            @endforeach
                        @endif
           </select>
        </div>
</blockquote>
<!-- <blockquote style="position: relative;" >

</blockquote> -->
<div class="layui-form news_list">
    <table class="layui-table">
        <thead>
        <tr>
            <th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose" id="allChoose"></th>
            <th style="text-align: center">verifyCode</th>
            <th style="text-align: center">设备类型</th>
            <th style="text-align: center">地址</th>
            <th style="text-align: center">报警时间</th>
            <th style="text-align: center">处理状态</th>
            <th style="text-align: center">处理结果</th>
            <th style="text-align: center">处理人</th>
            <th style="text-align: center">处理时间</th>
        </tr>
        </thead>

        <tbody class="news_content">
        @if($data)
            @foreach($data as $v)
                <tr >
                    <td><input type="checkbox" class="tab"  name="check" key="{{$v['id']}}" lay-filter="choose" lay-skin="primary"></td>
                    <td>{{$v['verifyCode']}}</td>
                    <td>{{$v['type_name']}}</td>
                    <td>{{$v['loc']}}</td>
                    <td>{{date('Y-m-d H:i:s',$v['addTime'])}}</td>
                    <td>{{$v['status']}}</td>
                    <td>{{$v['action_name']}}</td>
                    <td>{{$v['manage']}}</td>
                    <td>{{$v['ht']}}</td>
                </tr>
            @endforeach
        @endif
        </tbody>
    </table>

</div>
@if(!null == $data)
    <div style="float:right;">
        {!! $data->appends($request)->render() !!}
    </div>
@endif
</body>
<script type="text/javascript" src="/pc/layout/js/jquery.min.js"></script>
    <script type="text/javascript" src="/pc/layui/layui.js"></script>
      <script type="text/javascript" src="/NB/report/js/report.js"></script>
</html>
